package com.tinyideatech.framework.config;


//@Configuration
//@EnableWebSecurity
//@EnableGlobalMethodSecurity(prePostEnabled = true) extends WebSecurityConfigurerAdapter
public class WebSecurityConfiguration  {
//
//    @Autowired
//    private JwtAuthenticationEntryPoint jwtAuthenticationEntryPoint;
//
//    @Autowired
//    private JwtAccessDeniedHandler jwtAccessDeniedHandler;
//
//    @Autowired
//    public JwtAuthenticationTokenFilter jwtAuthenticationTokenFilter;
//
//    @Override
//    protected void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests()
//                .antMatchers("/car/device/**", "/ws/v2/**").permitAll()
//                .antMatchers("/photo/download").authenticated()
//                .anyRequest().authenticated();
//
//        http.exceptionHandling().accessDeniedHandler(jwtAccessDeniedHandler).and().exceptionHandling()
//                .authenticationEntryPoint(jwtAuthenticationEntryPoint).and()
//                .addFilterAt(jwtAuthenticationTokenFilter, UsernamePasswordAuthenticationFilter.class)
//                .csrf().disable();
//    }
//
//    @Override
//    public void configure(WebSecurity web) {
//        web.ignoring().antMatchers("/css/**", "/js/**");
//    }
}
